package com.iot.core.data;

import com.iot.core.util.MyJSON;
import com.mybatisflex.annotation.Id;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

@Data
@EqualsAndHashCode
public class BaseEntity implements Serializable  {
    private static final long serialVersionUID = 1L;
    @Id
    private Long id=0L;

    @Override
    public  String toString(){
        return MyJSON.toJSONString(this);
    }
}
